<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>Document</title>
  </head>
  <body>
    <script>
      //
      const p1 = Promise.resolve(1)
      const p2 = Promise.resolve(
        9999999999999999999999999999999999999999999999999999999999999999
      )
      const p3 = Promise.resolve(30)
      // Promise.all([异步操作，异步操作]) 同时执行多个异步操作
      Promise.all([p1, p2, p3]).then(value => {
        console.log(value)
        // value 每个异步操作返回的结果
      })
    </script>
  </body>
</html>
